﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
namespace vmlModel.Entities
{
    public class vmlRoundrect : vmlRect
    {
        //arcsize
        public string ArcSize { get { return (vmlObjElement.Attribute("arcsize") != null) ? vmlObjElement.Attribute("arcsize").Value : ""; } }

        public double CornerRadius
        {
            get {
                if (!string.IsNullOrEmpty(ArcSize))
                {
                    return Math.Min(Width, Height) * vmlUtils.GetPercent(ArcSize);
                }

                return 0;
            }
        }

        public vmlRoundrect()
            {

            }
             public vmlRoundrect(XElement _vmlObjElement)
                : base(_vmlObjElement)
            {
                FillMe();
            }

             private void FillMe()
             {
                 
             }
    }
}
